package com.qili.mapper.base;

import com.qili.base.mapper.BaseMapper;
import com.qili.entity.base.BaseStage;
import com.qili.entity.base.dto.BaseStageMileDTO;
import java.util.List;
import java.util.Map;

/**
 * @author zhaoyongke
 * @date 2020/11/3
 * @description 基础 阶段
 */

public interface BaseStageMapper extends BaseMapper<BaseStage,String> {


    /**
    * @Author:Zhangshuo
    * @Description:
    * @param baseStageDto
    * @Date:19:15 2020/11/19
    */
    List<BaseStageMileDTO> selectStageMileByProjectType(BaseStageMileDTO baseStageDto);
    /**
    * @Author:Zhangshuo
    * @Description:
    * @param id
    * @Date:19:17 2020/11/19
    */
    int delStage(String id);
    /**
    * @Author:Zhangshuo
    * @Description:
    * @param baseStage
    * @Date:19:17 2020/11/19
    */
    int updateStage(BaseStage baseStage);
    /**
    * @Author:Zhangshuo
    * @Description:
    * @param baseStage
    * @Date:19:17 2020/11/19
    */
    int addStage(BaseStage baseStage);

    /**
     * @Author:liuyang
     * @Description:                根据项目类型编号查询项目阶段列表
     * @param paraMap               项目类型编号    项目阶段类型在字典表中的类型编号
     * @return                      项目阶段列表
     */
    List<BaseStage> selectBaseStageListByProjectTypeNo(Map paraMap);
}